LoginStats.cs

#
#-----[ OPEN ]-------------------
#

LoginStats.cs

#
#-----[ FIND ]-------------------
#

			m.SendMessage( "Welcome, {0}! There {1} currently {2} user{3} online, with {4} item{5} and {6} mobile{7} in the world.",
				args.Mobile.Name,
				userCount == 1 ? "is" : "are",
				userCount, userCount == 1 ? "" : "s",
				itemCount, itemCount == 1 ? "" : "s",
				mobileCount, mobileCount == 1 ? "" : "s" );

#
#-----[ ADD, AFTER ]-------------
#

			PlayerMobile pm = (PlayerMobile)m;

			if ( pm.OwesBackTaxes == true )
			{
				if ( pm.City != null )
				{
					if ( Banker.Withdraw( m, pm.BackTaxesAmount ) )
					{
						m.SendMessage( "You have paid your back taxes in full from the money in your bank account." );
						pm.City.CityTreasury += pm.BackTaxesAmount;
						pm.OwesBackTaxes = false;
						pm.BackTaxesAmount = 0;
					}
					else
					{
						int balance = Banker.GetBalance( m );
					
						if ( Banker.Withdraw( m, balance ) )
						{
							pm.City.CityTreasury += balance;
							pm.BackTaxesAmount -= 0;
							m.SendMessage( "You have made a payment on your back taxes of {0} you now owe {1} in back taxes.", balance, pm.BackTaxesAmount );
						}
					}
				}
				else
				{
					pm.OwesBackTaxes = false;
					pm.BackTaxesAmount = 0;
				}
			}